package com.oyjd.fw.sql.service;

import java.util.List;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * sql Service接口
 * 
 * @author 欧建东
 * @version 1.0
 */
@Component
@Transactional
public interface SqlService {
	/**
	 * 查询数据
	 * 
	 * @param sql
	 * @return
	 */
	@SuppressWarnings("rawtypes")
	List query(String sql);

	/**
	 * 执行sql
	 * 
	 * @param sql
	 * @return
	 */
	int execute(String sql);

}
